package com.lannuokeji.biz.sys.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 条约规范
 * </p>
 *
 * @author lannuoTeck
 * @since 2018-03-19
 */
@TableName("g_sys_treaty")
public class Treaty extends Model<Treaty> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 规范内容
     */
    private String content;
    private String author;
    /**
     * 类型：0 学生用户，1 教师用户
     */
    private Integer type;
    @TableField("updateTime")
    private Date updateTime;
    @TableField("createTime")
    private Date createTime;
    /**
     * 状态：0 禁用，1 启用
     */
    private Integer status;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Treaty{" +
        ", id=" + id +
        ", content=" + content +
        ", author=" + author +
        ", type=" + type +
        ", updateTime=" + updateTime +
        ", createTime=" + createTime +
        ", status=" + status +
        "}";
    }
}
